package com.woniu.humanresource.dao;


import com.woniu.humanresource.entity.Employees;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeesDao {
//    添加在职员工信息
    void insertEmployees(Employees employees);
    //添加基础员工数据
    void insertBasicEmployees(Employees employees);
//    条件查询员工信息附带员工详细信息
    List<Employees> selectEmpInfoCondition(
            @Param("employees")Employees employees,
            @Param("pageIndex")int pageIndex
            ,@Param("pageSize")int pageSize);
//    查询员工数量
    int selectConditionCount(@Param("employees")Employees employees);
//    删除员工信息
    void deleteEmployees(int id);
//    修改员工信息
    void updateEmployees(Employees employees);
//查询全部员工
    List<Employees> selectAll();
}
